package com.gepengjun.springboot.jwt.service.impl;

import com.gepengjun.springboot.jwt.entity.Suser;
import com.gepengjun.springboot.jwt.mapper.SuserMapper;
import com.gepengjun.springboot.jwt.service.SuserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.validation.constraints.NotNull;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gepengjun
 * @since 2020-02-20
 */
@Service
public class SuserServiceImpl extends ServiceImpl<SuserMapper, Suser> implements SuserService {

    @Resource
    private SuserMapper suserMapper;

    @Override
    public Suser findByUserName(String username) {
        return suserMapper.findByUserName(username);
    }
}
